[NTG-context] upload

2024-04-01 Thread Hans Hagen
like the Pythagorean theorem: \m {a^2 + b^2 = c^2}, or even with more advanced math like geometric series: \m {\sum_{k = 0}^{+\infty} x^k = 1/(1 - x)}? We will not support complicated nonsense stuff like: \startplaceformula \startformula F__{1}{2}(a,b;b;z) = (1 - z)^{-a} \stopformula \stopplaceformula

[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
] [left={\startmathfenced[cases]}, right=\stopmathfenced, align={1:right,2:left,3:left}, strut=yes] \setupformula [location=left] \starttext \samplefile{knuthmath} \startplaceformula \startformula \startalignedcases

[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
{knuthmath}\startplaceformula \startformula \startalignedcases \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0      \NC \mtext{bla bla bla}     \NR \NC u(x,0)                                   \NC = u_0(x) \NC \mtext{bla bla}         \NR      \NC u(t,\sigma)                              \NC

Re: [NTG-context] upload

2022-03-30 Thread Otared Kavian via ntg-context
=(,right=),text=] \def\eqref#1{\informula[eq:#1]} \starttext Using \type{\startmathfenced} and \type{\startalign} we can number each equation, but the left brace is too far from the formula: \startplaceformula \startformula \startmathfenced[cases] \startalign[n=3,align={1:right,2:left,3:left}] \NC

Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-14 Thread Jason Ross via ntg-context
-math.tex \ | xmlstarlet ed -d "//*[local-name()='annotation']" \ | xmlstarlet sel -t -c "/p/*" \ | xmlstarlet ed -m "//*[local-name()='semantics']/*" \ "//*[local-name()='math']" \ | xmlstarlet ed -d "//*[local-name()='semantics']"

Re: [NTG-context] Formulanumbers in margin

2021-03-23 Thread Adam Reviczky
ightmargin] \startplaceformula \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stoptext Adam On Sun, Mar 21, 2021 at 8:41 PM Adam Reviczky wrote: > Thanks Hraban, > > That should be fine, I've tried to increase the margins as well, but not > sure that's the issue as I ca

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
\setupcaption[figure][location={rightmargin}] \startplacefigure[title=Cow] \externalfigure[cow] \stopplacefigure \define[1]\MyFormulaNumber{\inleftmargin{#1}} \setupformula[numbercommand=\MyFormulaNumber] \inleftmargin{Left Margin Text} \inrightmargin{Right Margin Text} \startplaceformula

[NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
[title=Cow] \externalfigure[cow] \stopplacefigure % this makes the formulanumber disappear % \setupformulas[location={rightmargin}] \startplaceformula[reference=eq1,location={rightmargin}] \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stoptext But the setupformulas will make the number

Re: [NTG-context] Formula numbering including all prefix segments

2021-03-21 Thread Adam Reviczky
gt; \starttext > > \setupcaption[figure][way=bytext,prefixsegments=1:*] > > \setupformulas[way=bytext,prefixsegments=1:*] > > \startsection[title=Section] > > \startsubsection[title=SubSection] > > \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure >

Re: [NTG-context] Formula numbering including all prefix segments

2021-03-21 Thread Hans Hagen
,prefixsegments=1:*] \setupformulas[way=bytext,prefixsegments=1:*] \startsection[title=Section] \startsubsection[title=SubSection] \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure \startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stopsubsection

[NTG-context] Formula numbering including all prefix segments

2021-03-20 Thread Adam Reviczky
,prefixsegments=1:*] \startsection[title=Section] \startsubsection[title=SubSection] \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure \startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stopsubsection \stopsection \placelistoffigures[criterium=all

[NTG-context] (no subject)

2021-03-20 Thread Adam Reviczky
,prefixsegments=1:*] \startsection[title=Section] \startsubsection[title=SubSection] \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure \startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stopsubsection \stopsection \placelistoffigures[criterium=all

Re: [NTG-context] placenamedformula in placelist (MKII vs MKIV/LMTX)

2021-03-17 Thread Adam Reviczky
. . . . . . . . . 1 \startplaceformula[reference=eq:one,title={Mass-energy equivalence}] \startformula e=mc^2 \stopformula \stopplaceformula % 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 % list option could g

Re: [NTG-context] Arbitrary equation tags... again

2021-02-23 Thread Jairo A. del Rio
I found a workaround for anyone interested: \setupinteraction[state=start,focus=standard] \starttext \startplaceformula[title=$\alpha$,reference=alpha] \startformula 1 + 1 = 2 \stopformula \stopplaceformula \dorecurse{20}{\samplefile{knuth}} I'm in \in{$\alpha$}[alpha] %so the reference

Re: [NTG-context] Arbitrary equation tags... again

2021-02-22 Thread Jairo A. del Rio
Hi again. The following doesn't work (the tag is missing): \startTEXpage[offset=2bp] \startplaceformula[title=A,reference=alpha] \startformula 1 + 1 = 2 \stopformula \stopplaceformula I'm in \in[alpha] \stopTEXpage Jairo El lun, 22 de feb. de 2021 a la(s) 09:00, Jairo A. del

Re: [NTG-context] Arbitrary equation tags... again

2021-02-22 Thread Jairo A. del Rio
er level and only use it deep down. It was > never meant as user command. > > > I imagine some things have changed in 2021 and I hope a better solution > > is feasible nowadays. > > \startTEXpage[offset=2bp] > \startplaceformula[title=

Re: [NTG-context] Arbitrary equation tags... again

2021-02-22 Thread Hans Hagen
level and only use it deep down. It was never meant as user command. I imagine some things have changed in 2021 and I hope a better solution is feasible nowadays. \startTEXpage[offset=2bp] \startplaceformula[title=A] \startformula 1 + 1 = 2 \stopformula \stopplaceformula \stopT

Re: [NTG-context] Issue with LMTX and placeformula

2020-11-25 Thread Jairo A. del Rio
Hi, Jean-Philippe. This seems to be a bug, indeed. In the meantime, you could use the preferred \start ... \stop variant. \starttext \startplaceformula[F] % works \startformula a^2 + b^2 = c^2 \stopformula \stopplaceformula The \in[F] formula \stoptext Cordially, Jairo El mié, 25 de nov. de

Re: [NTG-context] Override MathML formula label

2019-07-29 Thread Duncan Hothersall
ef\mmlformulatitle{\xmlatt{#1}{title}} > \doifsomethingelse {\mmlformulalabel\mmlformulatitle} { > > \startplaceformula[reference=\mmlformulalabel,title=\mmlformulatitle] > \startformula > \xmlfirst{#1}{/mml:math} > \stop

Re: [NTG-context] Override MathML formula label

2019-07-28 Thread Hans Hagen
f-sequence or differently formatted number. Thanks as ever for any help. \usemodule[mathml] \startxmlsetups mml:formula \edef\mmlformulalabel{\xmlatt{#1}{label}} \edef\mmlformulatitle{\xmlatt{#1}{title}} \doifsomethingelse {\mmlformulalabel\mmlformulatitle} { \startplaceformula

[NTG-context] Formula number misplaced

2019-04-23 Thread Henri Menke
and lmtx. It can be "fixed", however, by replacing \start...\stopTEXpage by \start...\stoptext, so this might not represent the most generic incarnation. Cheers, Henri --- \startTEXpage \samplefile{ward} Thus \startplaceformula \startformula \int_a^b f(x) \, \diff x = F(b) - F(a) . \s

[NTG-context] Reference links with focus=standard option

2018-04-11 Thread Lawrence Bell
,     % focus=standard,   ] \starttext \startchapter[title=Some Title, reference=pt:ref] Lorem ipsum dolor sit amet, \periods \startplaceformula[reference=eq:ref]   \startformula     c^2 = a^2 + b^2.   \stopformula \stopplaceformula Lorem ipsum dolor sit amet, \periods \startitemize[r

Re: [NTG-context] Strange result with formulaframed

2016-06-22 Thread Hans Hagen
[option=frame,color=blue] \starttext \startplaceformula \startformula f(x) := \left\{ \startalign \NC = -1\NC\quad \mbox{if }\, x < 0 \NR \NC = +1\NC\quad \mbox{if }\, x > 0 \NR \stopalign\right. \stopformula \stopplaceformula \stoptext % end framed-frormula.tex it's not r

[NTG-context] Strange result with formulaframed

2016-06-22 Thread Otared Kavian
Aditya was asking? % begin framed-frormula.tex \setupformulaframed[framecolor=red,frame=on,offset=1ex] \setupformula[option=frame,color=blue] \starttext \startplaceformula \startformula f(x) := \left\{ \startalign \NC = -1\NC\quad \mbox{if }\, x < 0 \NR \NC = +1\NC\quad \mbox{if }\

Re: [NTG-context] Flushleft formula

2016-06-18 Thread Hans Hagen
mental framed support in beta ... \starttext \setupformulaframed[framecolor=red,frame=on,offset=1ex] \setupformula[option=frame,color=blue] \setupformula[numbercommand={\inframed[framecolor=green]}] \startplaceformula \startformula 2 + 2 = 3 + 1 \stopformula \stopplaceformula \st

Re: [NTG-context] Flushed right formula numbers in cases environment

2014-09-22 Thread Aditya Mahajan
On Mon, 15 Sep 2014, Maggyero wrote: I want to have the formula numbers of cases environment flushed on the right like for regular formulas (not the default numberdistance=2.5\emwidth). How can I do that? \starttext \startplaceformula \startformula \startcases \NC x = 1

[NTG-context] Flushed right formula numbers in cases environment

2014-09-14 Thread Maggyero
I want to have the formula numbers of cases environment flushed on the right like for regular formulas (not the default numberdistance=2.5\emwidth). How can I do that? \starttext \startplaceformula \startformula \startcases \NC x = 1 \NR[+] \NC y = 1 \NR

Re: [NTG-context] Euler with fallback

2014-02-16 Thread Wolfgang Schuster
\setupmathematics[lcgreek=normal, ucgreek=normal] \starttext \input knuth \startplaceformula \startformula a^2 + b^2 = c^2. \stopformula \stopplaceformula \stoptext Wolfgang ___ If your question is of interest

Re: [NTG-context] Hyphen as separator for formulas

2013-08-10 Thread Wolfgang Schuster
} \startplaceformula \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] Formulas include chapter number

2012-09-17 Thread Marco Patzer
Hi, the last beta includes the chapter number in formulas, former betas didn't. Example: \starttext \startchapter [title=Foo] \startplaceformula \startformula E=mc^2 \stopformula \stopplaceformula \stopchapter \stoptext ∙ Is this intended? ∙ How to remove the chapter number